<template>
  <div id="app" ref="app">
    <mynav v-show='this.$store.state.navshow'></mynav>
    <router-view></router-view>
  </div>
</template>
<script>
import mynav from "./pages/mynav.vue"
export default {
  name:"app",
  components:{
    mynav
  },
  mounted(){
    this.getgao()
  },
  methods:{
    getgao(){
      let windowHeight = document.documentElement.clientHeight || documentbody.clientHeight
      this.$store.commit("setgao",windowHeight)
      // console.log(this.$refs.app.scrollHeight)
    }
  }
}
</script>
<style lang="less">
@import './other/all.less';
body,html{
  margin: 0;
  padding: 0;
  // height:100%;
  &::-webkit-scrollbar { width: 0 !important }
}
ul,li,ol{
  margin: 0;
  padding: 0;
  list-style:none;
}
a{
  -webkit-tap-highlight-color:transparent; 
  text-decoration: none;
}
h1{
  font-size: 1rem;
  color:@changecolor2;
  span{
    display:inline-block;
    width: 2rem;
    height:2rem;
    content:'';
    background-color:@changecolor3;
  }
}
h2{
  color:@changecolor4;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height:100%;
  &::-webkit-scrollbar { width: 0 !important }
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
.active{
  color:@allcolor2;
  svg{
    color:@allcolor2;
  }
}
</style>
